cmake_minimum_required(VERSION 3.20)

project(DEMO)

list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../local)
set(STB_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../src/stb CACHE PATH "")

find_package(Eigen3 3.3 REQUIRED)
find_package(assimp REQUIRED)
find_package(OpenMP REQUIRED)

add_executable(a
    main.cpp
    object.cpp
    scene.cpp
    render.cpp
    asset.cpp
    output.cpp
)

target_include_directories(a
    PRIVATE ${STB_ROOT}
)

target_link_libraries(a
    PRIVATE Eigen3::Eigen
    PRIVATE assimp::assimp
    PRIVATE OpenMP::OpenMP_CXX
)
